package com.gainloop.Utils;

import android.content.Context;
import android.widget.Toast;

import com.gainloop.R;

public class Constants {
	
	public final static String listTypeParam= "listType" ;
	
	public final static String userParam= "user" ;
	
	public final static String wishParam= "wish" ;
	
	public final static String wishesParam= "wishes" ;

	public final static String ALL_CATEGORY= "ALL" ;
	
	public final static Long ALL_CATEGORY_ID = new Long(1000) ;
	
	public static final String CATEGORY_ID = "category_id";

	public static final String SEARCH_TYPE = "search_type";

	
	public static final String TAGS_STRING_ARR_KEY = "tags_str_arr";
	
	/**
	 * The type of wish list we want to retrieve from the server.
	 */
	public enum ListType {TOP,RECENT,FRIENDS,USER,SEARCH_TAGS,SEARCH_CATEGORY,SEARCH_BOTH,HELPS,LOOPS }
	
	/**
	  * Handling errors softly.
	  */
	 	public static void declareInternalError(Context ctx,String str){
	 		Toast toast = Toast.makeText(ctx, str, Toast.LENGTH_LONG);
			toast.show();
	 	}
	 	
	 	public static void declareInternalError(Context ctx){
	 		Toast toast = Toast.makeText(ctx, R.string.internal_error, Toast.LENGTH_LONG);
			toast.show();
	 	}
	 
}
